package cn.young.javalearning.designpattern.factorypattern.f_simplefactory;

import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Apple;
import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Orange;

public class SimpleFruitFactory implements FruitFactory {
    @Override
    public Apple generateApple(Class clazz) { return new Apple(); }

    @Override
    public Orange generateOrange(Class clazz) {
        return new Orange();
    }
}
